Ene Rammer 1

Christian Knudsen 1

1 Københavns Universitetsbibliotek, KUB Datalab, Nørre Allé 49, 2200 København N

Introduction

KUB Datalab får regelmæssigt forespørgsler fra studerende med ønske om kurser med meget specifikt indhold. Det er for omkostningsfuldt at skulle udvikle enkeltstående kurser hvis egentlig indhold er en gentagelse af den undervisning de har fået i et kursus på universitetet, men som de ikke har forstået.

Vi har derfor udviklet et generelt “værktøjskassekursus”, med elementer der hyppigt er efterspørgsel på.

Infrastruktur

Kurset er opbygget i Workbench infrastrukturen fra Carpentries (“The Carpentries” n.d.) med brug af sandpaper (Kamvar and Nitta 2024) pakken, og tilgængeliggjort på GitHub.

Hvordan bygger vi så hurtigt et kursus?

klon siden, rediger config.yaml, PR - og så er den der.

Methods

Kursets didaktiske tilgang er baseret på teaching tech together. code-along etc.

I will show here how to include poster elements that may be useful, such as an equation using mathjax:

\[ E = mc^2 \]
A caption

Figure 1: A caption

To get a better understanding of how to include features like these please refer to the {posterdown} wiki.

Now on to the results!

Indhold

Here you may have some figures to show off, bellow I have made a scatterplot with the infamous Iris dataset and I can even reference to the figure automatically like this, Figure \@ref(fig:irisfigure), Figure 2.

Here is a caption for the figure. This can be added by using the "fig.cap" option in the r code chunk options, see this [link](https://yihui.name/knitr/options/#plots) from the legend himself, [Yihui Xie](https://twitter.com/xieyihui).

Figure 2: Here is a caption for the figure. This can be added by using the “fig.cap” option in the r code chunk options, see this link from the legend himself, Yihui Xie.

Maybe you want to show off some of that fancy code you spent so much time on to make that figure, well you can do that too! Just use the echo=TRUE option in the r code chunk options, Figure 3!

#trim whitespace
par(mar=c(2,2,0,0))
#plot boxplots
boxplot(iris$Sepal.Width~iris$Species,
        col = "#008080", 
        border = "#0b4545",
        ylab = "Sepal Width (cm)",
        xlab = "Species")
Boxplots, so hot right now!

Figure 3: Boxplots, so hot right now!

How about a neat table of data? See, Table 1:

Table 1: A table made with the knitr::kable function.
Sepal
Length
Sepal
Width
Petal
Length
Petal
Width
Species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5.0 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa
4.9 3.1 1.5 0.1 setosa
5.4 3.7 1.5 0.2 setosa
4.8 3.4 1.6 0.2 setosa
4.8 3.0 1.4 0.1 setosa
4.3 3.0 1.1 0.1 setosa
5.8 4.0 1.2 0.2 setosa

Hvor finder du den? https://github.com/kubdatalab/R-toolbox

https://kubdatalab.github.io/R-toolbox/

Referencer

Kamvar, Zhian N., and Joel H. Nitta. 2024. Sandpaper: Create and Curate Carpentries Lessons. https://carpentries.github.io/sandpaper/.
“The Carpentries.” n.d. Accessed May 17, 2024. https://carpentries.org/.

Made-to-Measure data kurser